
public class Blocks {
	protected static final int EMPTY = 0;
	protected static final int ASH = 1;
	protected static final int MUD = 2;
	protected static final int CLAY = 3;
	protected static final int DIRT = 4;
	protected static final int GLOWING_MUSHROOM_MUD = 5;
	protected static final int CORRUPTION_DIRT = 6;
	protected static final int JUNGLE_MUD = 7;
	protected static final int GRASSY_DIRT = 8;
	protected static final int GOLD = 9;
	protected static final int SILVER = 10;
	protected static final int IRON = 11;
	protected static final int COPPER = 12;
	protected static final int HELLSTONE = 13;
	protected static final int OBSIDIAN = 14;
	protected static final int METEORITE = 15;
	protected static final int DEMONITE = 16;
	protected static final int GLASS = 17;
	protected static final int WOOD = 18;
	protected static final int EBONSTONE = 19;
	protected static final int STONE = 20;
	protected static final int TOPAZ = 21;
	protected static final int EMERALD = 22;
	protected static final int RUBY = 23;
	protected static final int SAPPHIRE = 24;
	protected static final int RED_BRICK = 25;
	protected static final int GRAY_BRICK = 26;
	protected static final int DIAMOND = 27;
	protected static final int AMETHYST = 28;
	protected static final int COPPER_BRICK = 29;
	protected static final int PINK_BRICK = 30;
	protected static final int GREEN_BRICK = 31;
	protected static final int BLUE_BRICK = 32;
	protected static final int HELLSTONE_BRICK = 33;
	protected static final int OBSIDIAN_BRICK = 34;
	protected static final int GOLD_BRICK = 35;
	protected static final int SILVER_BRICK = 36;
	protected static final int WOOD_PLATFORM = 37;
	protected static final int COBWEB = 38;
	protected static final int SPIKE = 39;
	protected static final int SAND = 40;
	protected int type;
	protected float water;
	protected float lava;
	protected boolean medium;//true if player can walk through
	protected Blocks(int a)
	{
		this.type = a;
		this.water = 0;
		this.lava = 0;
		if(this.type == Blocks.COBWEB || this.type == Blocks.EMPTY)
		{
			this.medium = true;
		}
	}
	void addWater(double x)
	{
		this.water+=x;
	}
	void addLava(double x)
	{
		this.lava+=x;
	}
}
